/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: SalesOrganizationDAOImpl.java
 * @PageName		: 매출현황 - 조직별
 * @Date			: 오후 3:59:43
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.sales.dao.impl;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.pulp.sales.dao.SalesOrganizationDAO;
import com.pulp.sales.model.SalesOrganizationInfo;

/**
 * @author 최경민
 *
 */
public class SalesOrganizationDAOImpl  extends SqlMapClientDaoSupport implements SalesOrganizationDAO{

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.SalesOrganizationDAO#getSalesOrganColumnChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<SalesOrganizationInfo> getSalesOrganColumnChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.SalesOrganColumnChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.SalesOrganizationDAO#getSalesOrganTotalColumnChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<SalesOrganizationInfo> getSalesOrganTotalColumnChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.SalesOrganTotalColumnChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.SalesOrganizationDAO#getSalesOrganTableList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<SalesOrganizationInfo> getSalesOrganTableList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.SalesOrganTableList", mapArgs);
	}

}
